package drivers;

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;

public class test {
    public static void main(String[] args) throws IOException {
        BufferedInputStream stream = new BufferedInputStream(new FileInputStream("test.txt"));
        byte[] buffer = new byte[100];
        int read=0;
        while((read = stream.read(buffer,0,100))>0){
            System.out.println(read);
        }
        System.out.println(Arrays.toString(buffer));
    }
}
